# urls.py
from django.urls import path
from .views import (
    AddBayAssignedSegmentView,
    BayAssignedSegmentListView,
    BayAssignedSegmentDetailView,
    BatchDeleteBayAssignedSegmentsView, BatchAddBayAssignedSegmentsView
)

urlpatterns = [
    path('addBayAssignedSegment', AddBayAssignedSegmentView.as_view(), name='addBayAssignedSegment'),
    path('getBayAssignedSegments', BayAssignedSegmentListView.as_view(), name='getBayAssignedSegments'),
    path('bayAssignedSegmentDetail/<int:pk>', BayAssignedSegmentDetailView.as_view(), name='bayAssignedSegmentDetail'),
    path('deleteBayAssignedSegments', BatchDeleteBayAssignedSegmentsView.as_view(), name='deleteBayAssignedSegments'),
    path('batchAddBayAssignedSegments', BatchAddBayAssignedSegmentsView.as_view(), name='batchAddBayAssignedSegments')
]